/*
** my_strncat.c for my_strncat in /home/chassa_m/rendu/Piscine-C-lib/my
** 
** Made by chassa_m
** Login   <chassa_m@epitech.net>
** 
** Started on  Wed Oct  9 10:43:40 2013 chassa_m
** Last update Thu Oct 10 07:32:29 2013 chassa_m
*/

char	*my_strncat(char *dest, char *src, int nb)
{
  int   i;
  int   j;

  i = 0;
  j = 0;
  while (dest[i] != '\0')
    {
      i = i + 1;
    }
  while (j < nb)
    {
      dest[i] = src[j];
      i = i + 1;
      j = j + 1;
    }
  if (i != '\0')
    {
      dest[i] = '\0';
    }
  return (dest);
}
